cmake_minimum_required(VERSION 3.16)
project(retinaface)

find_package(OpenCV)

link_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/)
#link_directories(/usr/local/lib/)

include_directories(/Users/yh-mac/3rdparty-cpp/3rdparty-cpp/NCNN/build-mac/install/include)
include_directories(${OpenCV_INCLUDE_DIRS} )
#include_directories(/Users/yh-mac/3rdparty-cpp/3rdparty-cpp/MNN/include)
set(CMAKE_CXX_STANDARD 14)

#add_executable(Silent_Face common/common.h FaceDetector/FaceDetector.h)
#add_executable(mnn_infer infer.cpp  FaceDetector/FaceDetector.cpp FaceDetector/FaceDetector.h common/common.cpp common/common.h LiveDetector/LiveDetector.cpp LiveDetector/LiveDetector.h model_infer/mnn_infer.h live_mnn/LiveMNN.cpp live_mnn/LiveMNN.h SilentLive/SilentLive.cpp SilentLive/SilentLive.h)
add_library(retinaface SHARED common/common.h common/common.cpp FaceDetector/FaceDetector.h FaceDetector/FaceDetector.cpp c_api/c_api.h c_api/c_api.cc)

target_link_libraries(retinaface ncnn ${OpenCV_LIBS} )